<?php

/**
 * Video form.
 *
 * @package    elearning
 * @subpackage form
 * @author     Your name here
 */
class VideoForm extends BaseVideoForm
{
  public function configure()
  {
  	unset($this['created_at'],$this['updated_at']);
	$this->widgetSchema['is_public'] = new sfWidgetFormInputCheckbox(array("value_attribute_value" => 1),array('value' => 1));
	
	$lang_current = sfContext::getInstance()->getUser()->getCulture();
	$this->languages = array($lang_current => $lang_current); 
    $langs = array_keys($this->languages);
    $this->embedI18n($langs);
    foreach($this->languages as $lang => $label)
    {
      $this->widgetSchema[$lang]->setLabel($label);
    }
	
  }
}
